Registering an external application
Prerequisite
- Access to the File > External application (BR003) menu.
Introduction
External applications are resources developed in PHP that perform specific tasks not provided by the standard system.
They can be executed by a business rule and perform custom actions. However, to do this, they need to be registered through the File > External application (BR003) menu.
See how to perform this operation:
Registering an external application
1. Access the File > External application (BR003) menu.
2. Click on the button to add an external application.
3. Enter the ID # and Name of the record.
4. Enter the path at which the external application is located in the Application path field.
Path examples: "http://intranet/login.php", "d:\erp\accounts.exe".
5. Click on the button to save the changes and enable the Parameter tab.
6. In the Parameter tab, click on the button.
7. Fill in the ID # field and enter the parameter name for the external application.
8. If desired, check the Parameter is fixed for all calls option so that the parameter is fixed for all calls to the external application.
9. In the Type section, specify whether the parameter value will be Constant or Variable. See the differences between the parameters below:
Constant | The system will always send the same value to the external application, regardless of the activity or process. |
Variable | It is possible to enter the value when configuring the external application in an activity. This way, the external application can receive one value in one process, and another value in another process. It is worth mentioning that, if the Parameter is fixed for all calls option has been selected previously, the Variable option will not be available. |
10. If desired, provide a Description for the parameter.
11. Click on to finish the creation.
A user who has access to the SoftExpert Process component will not be able to reuse the external application registered on the File > Automation: External application (PM042) menu.
However, it is feasible to reuse the PHP file if the required parameters are available on the File > External application (BR003) menu.
Conclusion
Now, the external application has been registered and can be associated with a business rule.